<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Major/index')}">专业列表</a>
	</li>
	<li class="active">修改专业信息</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<form action="__CONTROLLER__/major_edit" method='post' id='myformedit' class="myformedit" enctype="multipart/form-data">
<input type="hidden" name='major_id' value="{$major_arr.major_id}">
<input type="hidden" name='action' value="major_edit_action">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-warning arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 基本信息</span></div>
</div>

<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>专业名称</th>
        <td><input type="text" name='major_name' value="{$major_arr.major_name}" class="col-xs-6 nickname">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
</table>

<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 报名费</span></div>
</div>

<table class="table table-striped table-bordered table-hover" >
<?php
    for ($i=1; $i <= 9; $i++) {
?>
    <tr>
        <th>等级<?php echo $i;?></th>
        <td><input type="text" name='major_cost<?php echo $i;?>' value="{$major_arr.major_cost$i}" placeholder="{$major_arr.major_cost$i}" class="col-xs-6 ninputxt"><span class="Validform_checktip">必填项</span></td>
    </tr>
<?php
    }
?>
</table>

<div style="margin-top:20px">
<button type="submit" class="btn btn-primary" onClick="return checktelephone();">提交</button> <span class="btn" onClick="location.href='{:U('Major/index')}'">返回</span>

</div>
</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_baseinfo').addClass('active open');
        $('#menu_major_list').addClass('active');
    });
</script>
<script type="text/javascript">
    function votes_num() {
    	var user_votes = $('#user_votes').val();
    	var user_value = $('#user_value').val();
    	var num = user_value/user_votes;
    	var aaa = num.toFixed(2);
    	var bbb = aaa * 0.1;
    	var ccc = bbb * 100;
    	var ddd = ccc + 50;
    	var eee = ddd . toFixed(1);
    	var fff = eee + '%';
    	$('#user_pct').val(fff);
    }
    function speciality_action() {
    	var str = $('#ppppppp').select2('data');
        var lists = "";
        for (var i = 0; i < str.length; i++) {
        	//str[i].id or str[i].text
        	lists += str[i].id+',';
        };
        $('#speciality').val(lists);
    	$('#myformedit').submit();
    }
</script>
<script type="text/javascript">
</script>

</block>